#pragma warning(disable:4999)
#include<stdio.h>
#include<stdlib.h>
typedef struct Score
{
	int i;
	float *arr;
}type_a;
int main()
{
	type_a* ps = (type_a*)malloc(sizeof(type_a));
	if (!ps)
	{
		perror("ps");
		return -1;
	}
	ps->arr = (float*)malloc((ps->i) * sizeof(float));
	if (!ps->arr)
	{
		perror("ps->arr");
		return -2;
	}
	for (int i = 0; i < ps->i; i++)
	{
		ps->arr[i] = i;
	}
	for (int i = 0; i < ps->i; i++)
	{
		printf("%d\n", ps->arr[i]);
	}
	free(ps->arr);
	ps->arr = NULL;
	free(ps);
	ps = NULL;
	return 0;
}